import org.apache.spark.{SparkContext,SparkConf}
val conf=new SparkConf()
val sc=new SparkContext(conf)
val rdd=sc.parallelize(List("Good morning","Hello everyone"))
val data=rdd.flatMap(_.toLowerCase.split(" "))
val result=data.collect()
println(result.mkString(","))
